import 'package:flutter/material.dart';

class ColorUtil{
  Color hexColor(String value){
    if(value == null) return Color.fromARGB(255, 255 , 255, 255) ;
    int hex = int.parse(value.replaceAll("#", "") , radix: 16) ;
    return Color.fromRGBO((hex & 0xFF0000) >> 16 ,
         (hex & 0x00FF00) >> 8,
         (hex & 0x0000FF) >> 0 , 1);
   }
}